package com.medical.interrogation.controller;


import com.medical.common.core.domain.Result;
import com.medical.interrogation.domain.DiagnosticRecord;
import com.medical.interrogation.service.DiagnosticRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/diagnosticRecord")
public class DiagnosticRecordController {

    @Autowired
    private DiagnosticRecordService diagnosticRecordService;

    /**
     * 诊断记录
     * @param diagnosticRecord
     * @return
     */
    @PostMapping("/diagnosticInsert")
    public Result diagnosticInsert(@RequestBody DiagnosticRecord diagnosticRecord){
        return Result.success(diagnosticRecordService.diagnosticInsert(diagnosticRecord));
    }

}
